<%@page import="upcweb.util.ClsReturn"%>
<script type="text/javascript"><%
ClsReturn ret = (ClsReturn)request.getAttribute("return");
String operacion = request.getAttribute("operacion").toString();
String soli = request.getAttribute("cotizacion").toString();

if (ret.isFlag()){
	if (operacion.equalsIgnoreCase("add")){
		%>
		loadPage('verCotizacion.html',{solicitud : '<%=soli%>' });
		<%
	}
	else if (operacion.equalsIgnoreCase("del")){
		%>
		loadPage('verCotizacion.html',{solicitud : '<%=soli%>' });
		<%
	}
	else if (operacion.equalsIgnoreCase("cotizar")){
		%>
		ShowWarning('Se ha marcada la solicitud comon Cotizada.');
		<%
	}
}
else {if (operacion.equalsIgnoreCase("add")){
	%>
	ShowError("<%=ret.getMessage()%>");
	<%
}
}
%></script>